<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户举报</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="shortcut icon" href="static/favicon.ico" type="image/x-icon"/>

    <link rel="stylesheet" href="/library/css/flex.css">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/library/css/font.css">
    <link rel="stylesheet" href="/library/css/xadmin.css">
    <script type="text/javascript" src="/library/js/jquery-3.2.1.min.js"></script>
    <script src="/library/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/library/js/xadmin.js"></script>
    <script type="text/javascript" src="/library/js/common.js"></script>
    <script type="text/javascript" src="/library/js/user-report.js"></script>
</head>
<body class="layui-anim layui-anim-up">
<div class="x-nav">
            <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">反馈管理</a>
            <a>
              <cite>查看用户举报</cite></a>
          </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-form-text">
                        <div class="layui-form-item">
                            <div class="layui-input-inline">
                                <input type="text" name="number" id="number" placeholder="根据学号查找" autocomplete="off"
                                       class="layui-input" >
                            </div>
                            <div class="layui-input-inline">
                                <input type="text" name="name" id="name" placeholder="根据名字查找"
                                       autocomplete="off" class="layui-input" onkeyup="searchReport()"> <!--键盘弹起就执行查找-->
                            </div>
                            <div class="layui-input-inline">
                                <button class="layui-btn" onclick="searchReport()" type="button"><i class="layui-icon">&#xe615;</i>
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- 用户举报表-->
    <table class="layui-table" id="report_list" lay-filter="report_list" ></table>
</div>

<script type="text/html" id="reportType">
    {{#  if(d.type==0){}}
    <div style="color: #FF5722;">座位被他人占用</div>
    {{#  } else if(d.type==1) { }}
    <div style="color: #FF5722;">座位预约无人使用</div>
    {{#  } else { }}
    <div style="color: #FF5722;">类型异常</div>
    {{#  } }}
</script>

<script type="text/html" id="reportStatus">
    {{#  if(d.status==0){}}
    <div style="color: #F9A800;">审核中</div>
    {{#  } else if(d.status==1) { }}
    <div style="color: #000000;">举报失败</div>
    {{#  } else if(d.status==2) { }}
    <div style="color: #1E9FFF;">举报成功</div>
    {{#  } else if(d.status==3) { }}
    <div style="color: #21BA21;">已处理</div>
    {{#  } else { }}
    <div style="color: #FF5722;">状态异常</div>
    {{#  } }}
</script>

<script type="text/html" id="bar">
    <div class="input-inline">
        <button type="button" class="layui-btn" lay-event="lookMore">查看详细文本</button>
        <button  type="button" class="layui-btn layui-btn-normal" lay-event="modifyPower">删除</button>
    </div>
</script>

</body>
</html>